package edu.pitt.cs.cs2410pj2.datamodel;
/**
 * State Variable
 * @author zhangfan
 *
 */
public class State {
	public static int MODIFIED = 0;
	public static int SHARED = 1;
	public static int INVALID = 2;
	
	public static String getStateName(int state) {
		if(state == MODIFIED) {
			return "MODIFIED";
		} else if(state == SHARED) {
			return "SHARED";
		} else if(state == INVALID) {
			return "INVALID";
		}
		return "";
	}
}
